#include "../head.h"

// 为了处理最后的无参数情况 
void print() 
{
    cout << "进入无参数print" << endl;
}

template<typename T, typename... Types>
void print(const T &firstArgs, const Types &...args)
{
    cout << "进入可变参数print" << endl;
    cout << "current arg is " << firstArgs << endl;
    cout << "sizeof(args) left is " << sizeof...(args) << endl;
    print(args...);
}

int main()
{
    print(7.5, "hello", 42);
}